﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="re_news.aspx.cs" Inherits="AnyOffice.general.news.manage.re_news" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>简报评论</title>
		
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script>
function CheckForm()
{
   if(document.Form1.txtContent.value=="")
   { alert("评论的内容不能为空！");
     return (false);
   }   
   return (true);
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
        <div class="main_div">	
			<asp:Panel id="pnlMain" runat="server">
				<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
					<TR height="40">
						<TD align="center"><SPAN class="big3">原文 </SPAN><SPAN class="big3"><A href="read_news.aspx?news_id=<%=ViewState["NewsId"]%>">
									<asp:Literal id="litSubject" runat="server"></asp:Literal></A></SPAN></SPAN></TD>
					</TR>
				</TABLE>
				<asp:Repeater id="rptNewsComment" runat="server">
					<HeaderTemplate>
						<table border="0" width="95%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000"
							class="small">
							<TR>
						<TD class="TableHeader" colSpan="2">&nbsp;&nbsp;&nbsp;&nbsp;相关评论</TD>
					</TR>
					</HeaderTemplate>
					<ItemTemplate>
						<tr>
							<td class="TableLine1">
							<%#Eval("Content")%><br>
							<div align="right">
							<u title="部门：<%#Eval("DeptName")%>" style="cursor:hand"><%#Eval("UserName")%></u>
							<i><%#Eval("ReplyTime")%></i>&nbsp;&nbsp;
							 <a href="re_delete.aspx?comment_id=<%#Eval("CommentId")%>&news_id=<%=ViewState["NewsId"]%>" style="text-decoration:underline">删除</a>&nbsp;&nbsp;
							</div>							
							</td>
						</tr>
					</ItemTemplate>
					<AlternatingItemTemplate>
					<tr>
							<td class="TableLine2">
							<%#Eval("Content")%><br>
							<div align="right">
							<u title="部门：<%#Eval("DeptName")%>" style="cursor:hand"><%#Eval("UserName")%></u>
							<i><%#Eval("ReplyTime")%></i>&nbsp;&nbsp;
							 <a href="re_delete.aspx?comment_id=<%#Eval("CommentId")%>&news_id=<%=ViewState["NewsId"]%>" style="text-decoration:underline">删除</a>&nbsp;&nbsp;
							</div>							
							</td>
						</tr>
					</AlternatingItemTemplate>
					<FooterTemplate>
						</table>
					</FooterTemplate>
				</asp:Repeater>
				<asp:Literal id="litNewsComment" runat="server"></asp:Literal>
				<br>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="95%" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableHeader" colSpan="2"><IMG src="/images/green_arrow.gif" align="absmiddle"> 发表评论：
						</TD>
					</TR>
					<TR>
						<TD class="TableData" align="center">内容：</TD>
						<TD class="TableData">
						<TEXTAREA class="BigInput" id="txtContent" name="txtContent" rows="5" cols="57"
								runat="server"></TEXTAREA>
						</TD>
					</TR>
					<TR class="TableControl" align="center">
						<TD noWrap colSpan="2"><INPUT class="BigButton" onclick="return CheckForm();" type="submit" value="发表">&nbsp;&nbsp;
							<INPUT class="BigButton" onclick="javascript:window.close();" type="button" value="关闭">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
